/*
 * Copyright (c) 2024. hallele, Inc All rights reserved.
 */

package cn.hallele.ms.demo.integrartion.action.post.feign;

import cn.hallele.ms.demo.integrartion.dto.PostDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * hallele_ms_demo
 *
 * @author anle5
 * @since 2024/9/15 15:48
 */
// http://jsonplaceholder.typicode.com/posts
@FeignClient(name = "typicode", url = "http://jsonplaceholder.typicode.com")
public interface PostFeign {
    /**
     * demo，这里正式也是要调用outgoing微服务做查询
     *
     * @return List<TypicodeDTO>
     */
    @GetMapping("posts")
    List<PostDTO> posts();
}
